package pattern.singleton.test;

import pattern.singleton.lazy.LazySimpleSingleton;
import pattern.singleton.threadlocal.ThreadLocalSingleton;

/**
 * @author: jxj
 * @create: 2019-04-22
 **/
public class ExecutorThread implements Runnable {
    public void run() {
        //LazySimpleSingleton singleton=LazySimpleSingleton.getInstance();
        ThreadLocalSingleton singleton=ThreadLocalSingleton.getInstance();
        System.out.println(Thread.currentThread().getName()+" : "+singleton);
    }
}
